/*
 * Fight.h
 *
 *  Created on: 16/01/2011
 *      Author: Nenem
 */

#ifndef FIGHT_H_
#define FIGHT_H_

#include "Hitted.h"
#include "Tools.h"
#include "Direction.h"

#include <map>
#include <vector>
using namespace std;

#include <stdlib.h>

class Fight {
private:
	map<int, Hitted*> Fighters;
public:
	bool addFighters(Hitted *fighter, int owner);
	void erase(int owner);
	Fight();
	virtual ~Fight();
	bool testHit(int fighter, Rectangle attackArea, Direction *direction, vector<int> *hitteds);
    map<int,Hitted*> getFighters() const
    {
        return Fighters;
    }

    void setFighters(map<int,Hitted*> Fighters)
    {
        this->Fighters = Fighters;
    }

};

#endif /* FIGHT_H_ */
